<% if @flickr -%>
<div id="flickr">
<h3><%= @flickr.title  %> (<%= link_to "flickr", @flickr.link %>)</h3>
<% for pic in @flickr.choose(@sb_config['count'].to_i) -%>
  <div class="flickr<%= @sb_config['format']%>"><%= case @sb_config['format']
          when 'square':
            link_to image_tag(pic.square, :alt => pic.title),pic.link
          when 'rectangle':
            link_to image_tag(pic.thumb, :alt => pic.title),pic.link
          end
 %>
</div>
  <% end -%>
</div>
<% end -%>